import request from 'umi-request';

export async function salaryChangeBpm(id) {
  return request('/hr-ssc/api/api-admin/bpm/salaryChangeBpm', {
    method: 'GET',
    params: {id},
  }).then(( res) => {
    return res;
  });
}

export async function getEmployeeSalaryModuleByCode(code) {
  return request('/hr-ssc/api/api-admin/neusoft/getEmployeeSalaryModuleByCode', {
    method: 'post',
    params: {code},
    requestType: 'form'
  }).then(( res) => {
    if (res.flag){
      return res.data
    }
    return {};
  });
}

